package android.support.v4.c;

public final class c
{
  private static final Object a = new Object();
  private boolean b;
  private int[] c;
  private Object[] d;
  private int e;

  private void c()
  {
    int k;
    int l = this.e;
    int[] arrayOfInt = this.c;
    Object[] arrayOfObject = this.d;
    int i = 0;
    for (int j = 0; i < l; j = k)
    {
      Object localObject = arrayOfObject[i];
      k = j;
      if (localObject != a)
      {
        if (i != j)
        {
          arrayOfInt[j] = arrayOfInt[i];
          arrayOfObject[j] = localObject;
        }
        k = j + 1;
      }
      i += 1;
    }
    this.b = false;
    this.e = j;
  }

  public final int a()
  {
    if (this.b)
      c();
    return this.e;
  }

  public final int a(int paramInt)
  {
    if (this.b)
      c();
    return this.c[paramInt];
  }

  public final Object b(int paramInt)
  {
    if (this.b)
      c();
    return this.d[paramInt];
  }

  public final void b()
  {
    int j = this.e;
    Object[] arrayOfObject = this.d;
    int i = 0;
    while (i < j)
    {
      arrayOfObject[i] = null;
      i += 1;
    }
    this.e = 0;
    this.b = false;
  }
}